<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <%@include file="/WEB-INF/jspf/meta/meta.jspf" %>
    <title>Title</title>
    <%@include file="/WEB-INF/jspf/adminPage.jspf" %>
    <script type="text/javascript" src="<%=request.getContextPath()%>/static/_framework/jquery/jquery.serializejson.js"></script>
    <script type="text/javascript" src="<%=request.getContextPath()%>/static/_framework/jquery/date.js"></script>
    <script src="<%=request.getContextPath()%>/static/_framework/Highcharts/code/highcharts.js"></script>
    <script src="<%=request.getContextPath()%>/static/_framework/Highcharts/code/modules/exporting.js"></script>
    <script src="<%=request.getContextPath()%>/static/_framework/Highcharts/code/modules/export-data.js"></script>
</head>
<script>
$(function () {
    showChart();
})
function showChart(_data) {

    Highcharts.chart('container', {
        chart: {
            type: 'column'
        },
        title: {
            text: '招生数量统计'
        },
        subtitle: {
            text: '按月份划分'
        },
        xAxis: {
            type: 'category'
        },
        yAxis: {
            min: 0,
            title: {
                text: 'Rainfall (mm)'
            }
        },
        tooltip: {
            headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
            pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
                '<td style="padding:0"><b>{point.y:.1f} mm</b></td></tr>',
            footerFormat: '</table>',
            shared: true,
            useHTML: true
        },
        plotOptions: {
            column: {
                pointPadding: 0.2,
                borderWidth: 0
            }
        },
        series: [{
            name: '月份',
            data: [{
                y: 29.9,
                name: 'Jan'
            }, {
                y: 71.5,
                name: 'Feb'
            },{
                y: 106.4,
                name: 'Mar'
            }, {
                y: 129.2,
                name: 'Apr'
            }, {
                y: 144.0,
                name: 'May'
            },{
                y:176.0,
                name: 'Jun'
            }, {
                y: 135.6,
                name: 'Jul'
            }, {
                y: 148.5,
                name: 'Aug'
            }, {
                y: 216.4,
                name: 'Sep'
            },{
                y: 194.1,
                name: 'Oct'
            }, {
                y:95.6,
                name: 'Nov'
            }, {
                y: 54.4,
                name: 'Dec'
            }]
        }]
    });
}
</script>
<body>
    <body class="easyui-layout">
        <div data-options="region:'center',title:'权限编辑'" style="padding:5px;">
            <div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
        </div>
        <div data-options="region:'east',title:'统计图表',split:true" style="width:30%;padding:5px;">
            <div id="pieChart" style="min-width: 310px; height: 400px; max-width: 600px; margin: 0 auto"></div>
        </div>
    </body>
</body>
</html>